import { currentApp } from "@/views/seed-dev";
import MicroEditor from "./src/MicroEditor.vue";
import MicroCreator from "./src/MicroCreator.vue";
import { MicroConfiguration } from "@/views/dev-types";
export { MicroEditor, MicroCreator }

export function save(name: string, data: MicroConfiguration) {
  const app = currentApp.value
  app.micros = app.micros || {}
  app.micros[name] = data
}